<?php

App::uses('BaseAuthenticate', 'Controller/Component/Auth');

class XSignupAuthenticate extends BaseAuthenticate {
    public function authenticate(CakeRequest $request, CakeResponse $response) {
        echo "DEBUG: Authenticating via SignupAuthenticate \$_SESSION=<pre>".print_r($_SESSION,true)."</pre><br />\n";
        exit;
        if (@$_SESSION['signup_me']) {
        echo "DEBUG: Authenticating via SignupAuthenticate - SUCCESS<br />\n";
        exit;
            return $_SESSION['signup_me']['result'];
        }
        echo "DEBUG: Authenticating via SignupAuthenticate - FAILURE<br />\n";
        exit;
        $this->redirect(SIGNUP_URL);
        exit;
    }
}
